PARSER=parser
DUG=debug
HTTP_SERVER=http_server
cc=g++

.PHONY: all
all: $(PARSER) $(DUG) $(HTTP_SERVER)
$(PARSER): parser.cc
	$(cc) -o $@ $^ -std=c++11 -lboost_system -lboost_filesystem
$(DUG): server.cc
	$(cc) -o $@ $^ -ljsoncpp -std=c++11
$(HTTP_SERVER): http_server.cc
	$(cc) -o $@ $^ -ljsoncpp -std=c++11 -lpthread

.PHONY: clean
clean:
	rm -f $(PARSER) $(DUG) $(HTTP_SERVER)